package com.wdc.test;

public class GenericsDemo {
    public static void main(String[] args) {
        A<String> a = new A<String>();
        A<Object> b = new A<Object>();
        a.setVar("hello");
        b.setVar(new Object());
        fun(a);
        fun(b);
    }

    public static void fun(A<? super String> t){
        System.out.print(t + " ");
    }


}
